package com.design.pattern.builder;/** * create by yufeng on 2021/7/5 22:20 */public class CourseBuilder{    private Course course = new Course();    public CourseBuilder name(String name) {        course.setName(name);        return this;    }    public CourseBuilder ppt(String ppt) {        course.setPpt(ppt);        return this;    }    public CourseBuilder video(String video) {        course.setVideo(video);        return this;    }    public CourseBuilder note(String note) {        course.setNote(note);        return this;    }    public CourseBuilder homework(String homework) {        course.setHomework(homework);        return this;    }    public Course build() {        return course;    }}